package com.cjy.common.filter;


import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * 防止XSS,SQL注入问题
 * Date: 13-12-9
 * Time: 下午4:00
 * @author jay.zhoujingjie
 */
public class SercurityFilter implements Filter
{
	
	@Override
	public void destroy()
	{
	}
	
	/**
	 * doFilter
	 * @param servletRequest
	 * @param servletResponse
	 * @param filterChain
	 * @throws IOException
	 * @throws ServletException
	 */
	@Override
	public void doFilter(ServletRequest servletRequest,ServletResponse servletResponse,FilterChain filterChain) throws IOException,ServletException
	{
		filterChain.doFilter(new OmRequestWrap((HttpServletRequest) servletRequest), servletResponse);
	}
	
	@Override
	public void init(FilterConfig filterConfig) throws ServletException
	{
	}
}
